class AnswerOk extends eui.Component{
	private resetBtn:eui.Image;

	public constructor() {
		super();
		this.skinName = `resource/eui_skins/alert/AnswerOkSkin.exml`;
	}

	protected createChildren(): void {
		super.createChildren();
		this.initView();
		this.initEvent();
	}

	private initView(): void {
		
	}

	private initEvent(): void {
		this.resetBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.closeBtnHandle, this);
	}

	private closeBtnHandle(e:egret.TouchEvent):void
	{
		e.stopPropagation();
		this.resetBtn.removeEventListener(egret.TouchEvent.TOUCH_BEGIN, this.closeBtnHandle, this);
		pub.SignalManager.instance.dispatchSignal(pub.SignalDefin.RESET_GAME);
		pub.SignalManager.instance.dispatchSignal(pub.SignalDefin.CLOSE_ALERT);
		utils.ScreenManager.instance.backScreen();
	}
}